package com.library.service;

import com.library.entity.UserInfo;
import com.library.dao.ReaderInfoDao;
import com.library.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ReaderInfoService {
    @Autowired
    private ReaderInfoDao readerInfoDao;

    @Autowired
    private UserInfoMapper userInfoMapper;

    public List<UserInfo> list(UserInfo oaDepartment) {
        return userInfoMapper.selectByQuery(oaDepartment);
    }
}
